package com.timber.util;



import java.awt.Insets;

import javax.swing.JPanel;

import com.timber.frame.ImsFrame;



/**
 *	base class for main screen panels
 */
public class ImsFrameComponent extends JPanel
{
  protected ImsFrame		parent;
  

 

  protected Insets		insetsNone = new Insets(0, 0, 0, 0);
  protected Insets		insetsFiveLR = new Insets(0, 5, 0, 5);
  protected Insets		insetsFiveR = new Insets(0, 0, 0, 5);
  protected Insets		insetsFiveL = new Insets(0, 5, 0, 0);
  protected Insets		insetsFiveTLR = new Insets(5, 5, 0, 5);

//  public ImsFrameComponent( ImsFrame parent2 )
//  {
//    this.parent = parent;
//  }





public ImsFrameComponent(ImsFrame parent2) {
	 this.parent = parent;
}


public void setStatusText( String txt )
  {
    parent.setStatusText( txt );
  }



  public void activateTab( int tabType, Object o )
  {
    parent.activateTab( tabType, o );
  }

  public void activate( Object o )
  {
    Util.debug( "ImsFrameComponent.activate(): nothing to activate..." );
  }

  public void printTable()
  {
    Util.debug( "ImsFrameComponent.printTable(): no table to print..." );
  }



}
